/**
 * @Description:员工卡已开通状态的卡面实例
 * @author tao.xie
 * @date $
 */

import StaffCardFace from '../StaffCardFace'
import { px2dp } from 'rn-xiaobu-utils'
import CardOpenedModule from './CardOpenedModule'
import React, { Component } from 'react'
import {
  StyleSheet,
  Text,
  View,
  Image, Dimensions
} from 'react-native'

export default class StaffCardOpenModule extends CardOpenedModule {
  constructor (props) {
    super(props)
    this.state = {
      ...this.state,
      canRecharge: false
    }
  }

  _renderCardFace = () =>{
    return <StaffCardFace balance={this.state.balance} cardno={this.cardno}
      name={this.props.cardinfo.cardOwner}
      style={styles.face}/>
  }
}

const styles = StyleSheet.create({
  face: {
    marginTop: px2dp(40),
    marginBottom: px2dp(130)
  }
})